﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Account_Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <span class="failureNotification">
        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" ValidationGroup="LoginUserValidationGroup"/>
    <div class="accountInfo">
        <fieldset class="login">
            <legend>Login</legend>
            <div class="success" ID="loginMessage" runat="server" visible="false"></div>
            <div class="control-group">
                <asp:Label ID="lblUserName" CssClass="control-label" runat="server" AssociatedControlID="txtUserName">Username:</asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtUserName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtUserName" 
                            CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <asp:Label ID="lblPassword" CssClass="control-label" runat="server" AssociatedControlID="txtPassword">Password:</asp:Label>
                <div class="controls">
                    <asp:TextBox ID="txtPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="txtPassword" 
                            CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <%-- 
            <div class="control-group">
                <asp:Label ID="lblRememberMe" runat="server" AssociatedControlID="chbxRememberMe" CssClass="inline">
                    <asp:CheckBox ID="chbxRememberMe" runat="server"/>Keep me logged in
                </asp:Label>
            </div>
            --%>
            <div class="controls">
                <asp:Button ID="btnLogin" CssClass="btn btn-primary" CausesValidation="true" runat="server" onclick="btnLogin_Click" CommandName="Login" Text="Log In" ValidationGroup="LoginUserValidationGroup"/>
            </div>
        </fieldset>  
    </div>
</asp:Content>